package file;

import java.io.File;
import java.util.List;

/**
 * @Author 史祥连
 * @Date 2023/8/25 16:32
 * @Version 1.0
 */
public class FileCompareDictory {
    public static void main(String[] args) {
        List<File> allFile = FindeAllFile.getAllFile("C:\\Datas\\E9\\方太预合并");
        for (File file : allFile) {
            String absolutePath = file.getAbsolutePath();
            String targetPath = absolutePath.replace("C:\\Datas\\E9\\方太预合并", "C:\\Datas\\E9\\N宁波方太厨具有限公司");
            File targetFile = new File(targetPath);
            if (targetFile.isFile()) {
                System.out.println("targetFile = " + targetFile);
            } else {
            }

        }
    }
}
